package com.woniuxy.student.service.impl;

import com.woniuxy.commons.entity.ErrorSheet;
import com.woniuxy.student.dao.ErrorQuestionDao;
import com.woniuxy.student.service.ErrorQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: lishuwei
 * @Date: 2020/8/3
 * @description:
 */
@Service
public class ErrorQuestionServiceImpl implements ErrorQuestionService {
    @Autowired
    private ErrorQuestionDao errorQuestionDao;

    @Override
    public List<ErrorSheet> getErrorQuestion(int id, int type) {
        if (type==1){
            return errorQuestionDao.getSelectQuestions(id);
        }
        return null ;
    }
}
